function preLoadImagesFun(obj,callBack){
			var didLoaded = 0;
			var needLoad = obj.length;
			var imagesArray = [];
			for(var i = 0; i < needLoad;i ++){
				imagesArray[i] = new Image();
				imagesArray[i].src = obj[i];
				imagesArray[i].onload = loadFun;
				// console.log(i);
			}

			function loadFun(){
				didLoaded++;
				if (didLoaded >= needLoad) {
					// alert(1111);
					callBack(imagesArray);
				};
			}
		}
	var load_picture = ["img/123.png","img/background.png","img/bomb.png","img/bullet1.png","img/bullet2.png","img/enemy1.png","img/enemy2.png","img/enemy3.png","img/game.png","img/gamebegin.png","img/herofly.png","img/loading.gif","img/prop.png","img/text.png"];
		for(var i = 0;i < load_picture.length;i++){
			// load_picture[i] = ".." + load_picture[i];
			load_picture[i] = load_picture[i].substring(0);
			console.log(load_picture[i]);
		}
		// 加载图片时间记录一个时间
		var before_load_t = (new Date()).getTime();
		// 加载图片
		preLoadImagesFun(load_picture,function(){
			var after_load_t = (new Date()).getTime();
//			function ff(){
//				$("#typesound")[0].play();
//				$("#loading").hide();
//				$("#word_wrap").show();
//				flyFn();
//				run();
//
//			}
//			if (after_load_t - before_load_t >= 1000) {
//				ff();
//			} else {
//				setTimeout(function(){
//					ff();
//				},1000-(after_load_t - before_load_t))   
//			}
		});